package com.huika.dealontop.support.domain;

import android.os.Parcel;
import android.os.Parcelable;

/**
 *
 * Created by zhouweiyong on 15/11/20.
 */
public class OrderProcessBean implements Parcelable {

    private int status;//1:处理中，-1：失败，0:成功，-2:没有收货地址，-3:库存不足，-4:商品已下架，-5:参数错误
    private String orderID;//订单ID
    private double productAmount;//实付金额
    private String paymentOrderID;//支付编号

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getOrderID() {
        return orderID;
    }

    public void setOrderID(String orderID) {
        this.orderID = orderID;
    }

    public double getProductAmount() {
        return productAmount;
    }

    public void setProductAmount(double productAmount) {
        this.productAmount = productAmount;
    }

    public String getPaymentOrderID() {
        return paymentOrderID;
    }

    public void setPaymentOrderID(String paymentOrderID) {
        this.paymentOrderID = paymentOrderID;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.status);
        dest.writeString(this.orderID);
        dest.writeDouble(this.productAmount);
        dest.writeString(this.paymentOrderID);
    }

    public OrderProcessBean() {
    }

    protected OrderProcessBean(Parcel in) {
        this.status = in.readInt();
        this.orderID = in.readString();
        this.productAmount = in.readDouble();
        this.paymentOrderID = in.readString();
    }

    public static final Creator<OrderProcessBean> CREATOR = new Creator<OrderProcessBean>() {
        public OrderProcessBean createFromParcel(Parcel source) {
            return new OrderProcessBean(source);
        }

        public OrderProcessBean[] newArray(int size) {
            return new OrderProcessBean[size];
        }
    };
}
